wayland: Annotate the log_handler function
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 28 Apr 2017 22:10:51 +0000 (23:10 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Fri, 28 Apr 2017 22:12:26 +0000 (23:12 +0100)
The log_handler() internal function is a candidate for the GCC format
attribute for printf-like functions.

gdk/wayland/gdkdisplay-wayland.c

index 47805467e72126c3a577a9ef39c7eb772d90bb53..bb1b78a6b4a046aadceb29d53fed570835a4b3cc 100644 (file)
@@ -481,6 +481,7 @@ static const struct wl_registry_listener registry_listener = {
     gdk_registry_handle_global_remove
 };
 
+G_GNUC_PRINTF (1, 0)
 static void
 log_handler (const char *format, va_list args)
 {